// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
  &.el-upload--picture-card{
    width: 80px;
    height: 80px;
    line-height: 80px;
    vertical-align: middle;
    .el-icon-plus{
      font-size: 18px;
    }
  }
}
.el-upload-list{
  &.el-upload-list--picture-card{
    .el-upload-list__item{
      width: 80px;
      height: 80px;
      line-height: 80px;
      img{
        object-fit: cover;
      }
    }
  }
}
.el-upload__input {
  display: none;
}
.hide-upload .el-upload--picture-card, 
.hide-upload .el-upload--text{
  display: none;
}
.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}
.el-loading-mask{
  background-color:rgba(255,255,255,.4)
}
@media only screen and (min-width: 768px) {
  .el-col-sm-4-8 {
    width: 20%;
  }

  .el-col-sm-offset-4-8 {
    margin-left: 20%;
  }

  .el-col-sm-pull-4-8 {
    position: relative;

    right: 20%;
  }

  .el-col-sm-push-4-8 {
    position: relative;

    left: 20%;
  }
}

@media only screen and (min-width: 992px) {
  .el-col-md-4-8 {
    width: 20%;
  }

  .el-col-md-offset-4-8 {
    margin-left: 20%;
  }

  .el-col-md-pull-4-8 {
    position: relative;

    right: 20%;
  }

  .el-col-md-push-4-8 {
    position: relative;

    left: 20%;
  }
}

@media only screen and (min-width: 1200px) {
  .el-col-lg-4-8 {
    width: 20%;
  }

  .el-col-lg-offset-4-8 {
    margin-left: 20%;
  }

  .el-col-lg-pull-4-8 {
    position: relative;

    right: 20%;
  }

  .el-col-lg-push-4-8 {
    position: relative;

    left: 20%;
  }
}

@media only screen and (min-width: 1920px) {
  .el-col-xl-4-8 {
    width: 20%;
  }

  .el-col-xl-offset-4-8 {
    margin-left: 20%;
  }

  .el-col-xl-pull-4-8 {
    position: relative;

    right: 20%;
  }

  .el-col-xl-push-4-8 {
    position: relative;

    left: 20%;
  }
}
.el-link + .el-link {
  margin-left: 10px;
}

.el-select{
  width: 100%;
}
.el-dialog{
  margin-bottom:30vh
}
.xn-loading{
  display: flex;
  justify-content: center;
  .el-loading-spinner{
    padding: 20px;
    width: auto;
    border-radius: 10px;
    background: rgba($color: #fff, $alpha: 1);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1)
  }
}
.cus-el-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c0c4cc;
  background-color: #f5f7fa;
  font-size: 12px;
  .image-slot{
    text-align: center;
  }
}
pre{
  white-space: pre-wrap;
word-wrap: break-word;
}
$-idcard-width:428px/2;
.el-upload-idcard{
  .el-upload{
    // width: $-idcard-width;
    // height: $-idcard-width / 1.59;
    width: 100%;
    height: 100%;
  }
  .el-upload-list{
      .el-upload-list__item{
        width: 100%;
        height: 100%;
        line-height: normal;
      }
  }
}